package com.xingxuecn.batis.service.impl;

import com.xingxuecn.batis.common.ContextContainer;
import com.xingxuecn.batis.common.dto.Menu;
import com.xingxuecn.batis.mapper.MenuMapper;
import com.xingxuecn.batis.service.MenuService;

/**
 * @author 陈前钱 at 2018/9/21 0021 上午 10:28
 */
public class MenuServiceImpl implements MenuService {
    MenuMapper menuMapper = ContextContainer.getSqlSessionFactory().openSession().getMapper(MenuMapper.class);
    public Menu findById(Integer id){
        return menuMapper.findById(id);
    }
}
